<script setup>
import { inject } from 'vue';

const color = inject('color')
const count = inject('count')
const changeCount = inject('changeCount')
const changeFn = () =>{
    changeCount(200)
}

</script>

<template>
<div>
  <h3>later  -- {{ color }} -- {{ count }}</h3>
  <button @click="changeFn">changeCount</button>
</div>
</template>

<style scoped>

</style>